package ccmouse.guice.v10.helloworlddemo;

import ccmouse.guice.v10.MyAppletV4;

public class HelloWorldPrinterV8 implements MyAppletV4 {

    private MyDestination destination;
    private String outputString;

    public HelloWorldPrinterV8(MyDestination destination,
                               String outputString) {
        this.destination = destination;
        this.outputString = outputString;
    }

    private void printHelloWorld() {
        destination.write(outputString);
    }

    @Override
    public void run() {
        printHelloWorld();
    }
}
